<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="Pragma" content="no-cache" />
		<title>我的易安--业务单管理</title>
		<%@ include file="/user_comm.jsp"%>
	</head>
	<body>
		<%@ include file="/user_top.jsp"%>
		<div class="realCer">
			<!--导航-->
			<!--主体部分start-->
			<div class="realMain clearfix mt10">
				<%@ include file="/user_menu.jsp"%>
				<div class="realRight ml10 Buyer">
					<div class="mybox">
						<div class="mytit">
							业务单管理
						</div>
						<div class="con Orbuy">
							<s:form name="formpage" action="busiInfo_list" namespace="/">
							<%@ include file="/messages.jsp"%>
							<div style="padding: 5px 10px;" class="l-myzbj-tips mb10">
								我的业务单提醒：
								<a href="<%=request.getContextPath()%>/busiInfo_list.do?t=2">进行中</a> (<s:property value="#request.count2"/>)
								<a href="<%=request.getContextPath()%>/busiInfo_list.do?t=3" class="ml15" >中途开封</a> (<s:property value="#request.count3"/>)
								<a href="<%=request.getContextPath()%>/busiInfo_list.do?t=5" class="ml15" >代收审核</a> (<s:property value="#request.count5"/>)
								<a href="<%=request.getContextPath()%>/busiInfo_list.do?t=4" class="ml15" >已完成</a> (<s:property value="#request.count4"/>)
							</div>

							<div class="pCenter">
								<div class="at_tab_t">
									<s:if test='#request.tabIndex=="2"'>
										<a href="<%=request.getContextPath()%>/busiInfo_list.do?t=1" class="at_tab_i ">所有业务单</a>
										<a href="<%=request.getContextPath()%>/busiInfo_list.do?t=2" class="at_tab_i at_current">进行中的业务单</a>
										<a href="<%=request.getContextPath()%>/busiInfo_list.do?t=3" class="at_tab_i ">中途开封的业务单</a>
										<a href="<%=request.getContextPath()%>/busiInfo_list.do?t=4" class="at_tab_i ">已完成的业务单</a>
									</s:if>
									<s:elseif test='#request.tabIndex=="3"'>
										<a href="<%=request.getContextPath()%>/busiInfo_list.do?t=1" class="at_tab_i ">所有业务单</a>
										<a href="<%=request.getContextPath()%>/busiInfo_list.do?t=2" class="at_tab_i ">进行中的业务单</a>
										<a href="<%=request.getContextPath()%>/busiInfo_list.do?t=3" class="at_tab_i at_current">中途开封的业务单</a>
										<a href="<%=request.getContextPath()%>/busiInfo_list.do?t=4" class="at_tab_i ">已完成的业务单</a>
									</s:elseif>
									<s:elseif test='#request.tabIndex=="4"'>
										<a href="<%=request.getContextPath()%>/busiInfo_list.do?t=1" class="at_tab_i ">所有业务单</a>
										<a href="<%=request.getContextPath()%>/busiInfo_list.do?t=2" class="at_tab_i ">进行中的业务单</a>
										<a href="<%=request.getContextPath()%>/busiInfo_list.do?t=3" class="at_tab_i ">中途开封的业务单</a>
										<a href="<%=request.getContextPath()%>/busiInfo_list.do?t=4" class="at_tab_i at_current">已完成的业务单</a>
									</s:elseif>
									<s:else>
										<a href="<%=request.getContextPath()%>/busiInfo_list.do?t=1" class="at_tab_i at_current">所有业务单</a>
										<a href="<%=request.getContextPath()%>/busiInfo_list.do?t=2" class="at_tab_i ">进行中的业务单</a>
										<a href="<%=request.getContextPath()%>/busiInfo_list.do?t=3" class="at_tab_i ">中途开封的业务单</a>
										<a href="<%=request.getContextPath()%>/busiInfo_list.do?t=4" class="at_tab_i ">已完成的业务单</a>
									</s:else>
								</div>
								<div>
									<s:form id="search" action="busiInfo_list" namespace="/">
										<div class="search_bcontrol">
											<select id="search_bkey" name="bk">
												<option value="tt">
													柜号/车牌号
												</option>
												<option value="id">
													账户代码
												</option>
												<option value="id">
													业务单号
												</option>
											</select>
											<input type="text" id="search_bval" name="bv" size="40"
												value="" />
											<button data-point-url="list_bought=search" type="submit"
												class="J_MakePoint btn search-btn">
												搜索
											</button>
											<a id="search_boxtoggle" href="javascript:void(0);">更多筛选条件</a>
										</div>
										<ul id="search_mcontrol">
											<li class="col1">
												<div>
													<label>
														交易时间：
													</label>
													从&nbsp;
													<!-- <input type="text" value="" name="fc" id="mix_createymd" size="10" onClick="WdatePicker()"/>  -->
													<input id="dStartdate" name="busiInfoDto.fromDate"
														value='<s:date name="#request.busiInfoDto.fromDate" format="yyyy-MM-dd" />'
														size="13" class="Wdate" type="text"
														onFocus="WdatePicker({maxDate:'#F{$dp.$D(\'dEnddate\')}'})" />
													到&nbsp;
													<!-- <input type="text" value="" name="tc" id="max_createymd" size="10" onClick="WdatePicker()"/>  -->
													<input id="dEnddate" name="busiInfoDto.toDate"
														value='<s:date name="#request.busiInfoDto.toDate" format="yyyy-MM-dd" />'
														size="13" class="Wdate" type="text"
														onFocus="WdatePicker({minDate:'#F{$dp.$D(\'dStartdate\')}'})" />
												</div>
											</li>
											<!-- 
                    <li class="col2"> 
                    <label> 卖家昵称：</label><input type="text" value="" id="sl_nickname" size="15" name="nk"/> 
                    </li>
                     -->
										</ul>
									</s:form>
									<style type="text/css">
#search {
	padding: 8px;
}

#search_mcontrol {
	display: none;
}

#search_mcontrol li {
	display: inline-block;
	margin-right: 15px;
	margin-top: 7px;
}

#search_mcontrol .col1 {
	width: 360px;
}

#search_mcontrol .col2 {
	width: 178px;
}

#search_mcontrol .col3 {
	width: 178px;
}
</style>
									<script type="text/javascript"> 
                	$(function(){
                    	$("#search_boxtoggle").click(function(){
                        	$("#search_mcontrol").toggle();
                            if($("#search_mcontrol").is(":hidden"))
                            {
                            	$(this).text('更多筛选条件');
                            }
                            else
                            {
                            	$(this).text('精简筛选条件');
                            }
                        });
                    });
                </script>
								</div>
								<div class="at_tab_c">
									<div class="at_tab_l clearfix" id="orderlist">
										<!--标题-->
										<ul class="title mt10 clearfix">
											<li class="rwtit">
												业务单信息
											</li>
											<li class="rwmon">
												柜号/车牌号
											</li>
											<li class="rwSta">
												交易状态
											</li>
											<li class="rwOpe">
												操作
											</li>
											<li class="rwEva">
												备注
											</li>
										</ul>
										<!--业务单列表-->

										<!--发布任务-->
										<!--发布服务-->
										<s:iterator id="sa" value="#request.busilist">
										<table class="OrderForm mt10 ">
											<tr>
												<th colspan="5">
													<span>业务单号：<em class="orange1"><s:property value="#sa.busiNo"/></em>
													</span><span class="ml15">创建时间：
														<em class="fc9"><s:date name="#sa.createDate" format="yyyy-MM-dd HH:mm" /></em>
													</span>
													<span class="ml15">
														<s:if test="#sa.sendCompanyid==#request.companyId">
															收货方：<em class="fc9"><s:property value="getCompanyName(#sa.recvCompanyid,#sa.recvUserid)" /></em>
														</s:if>
																	<s:else>
															发货方：<em class="fc9"><s:property value="getCompanyName(#sa.sendCompanyid,#sa.sendUserid)" /></em>
														</s:else>
													</span>
													<span class="ml15"></span>
												</th>
											</tr>
											<tr>
												<td class="ofList">
													<p class="oflistp">
														<span class="Task">
														<a 
															href="<s:url action="busiInfo_editPage"><s:param name="id">
																<s:property value="#sa.busiNo"/></s:param>
																<s:param name="op">0</s:param>
																<s:param name="tab"><s:property value="#request.tabIndex"/></s:param>
																</s:url>">
															<s:property value="#sa.goodsInfo" />
														</a> </span>
														<span class="Unit"><s:property value="#sa.carrierNo" /></span>
														<span class="Num"> 0.00	</span>
														<span class="Right"></span>
													</p>
												</td>
												<td class="Disbur">
													<p class="orange1"><s:property value="showStatus(#sa)" /></p>
												</td>
												<td class="Tran">
													<p class="orange1"/>
													<p class="fc9"/>
													<s:if test='#sa.status=="04" || #sa.status=="05"'>
														<a 
																href="<s:url action="busiInfo_editPage"><s:param name="id">
																	<s:property value="#sa.busiNo"/></s:param>
																	<s:param name="op">0</s:param>
																	<s:param name="tab"><s:property value="#request.tabIndex"/></s:param>
																	</s:url>">
																查看详情
															</a>
													</s:if>
													<s:if test="testEnsealFlag(#sa)">
															<a
																href="<s:url action="busiInfo_editPage">
																<s:param name="id"><s:property value="#sa.busiNo"/></s:param>
																<s:param name="op">1</s:param>
																<s:param name="tab"><s:property value="#request.tabIndex"/></s:param>
															</s:url>">
																加封 </a>
														</s:if>
														<s:if test="testCloseFlag(#sa)">
														<br/>
															<a
																href="<s:url action="busiInfo_editPage">
																<s:param name="id"><s:property value="#sa.busiNo"/></s:param>
																<s:param name="tab"><s:property value="#request.tabIndex"/></s:param>
																<s:param name="op">2</s:param>
															</s:url>">
																<s:if test="#sa.sendUserid==#request.userId">
														关闭业务单
													</s:if> <s:else>
														结束业务单
													</s:else> </a>
														</s:if>
														<s:if test="testAgentFlag(#sa)">
															<a
																href="<s:url action="busiInfo_applyPage">
																<s:param name="id"><s:property value="#sa.busiNo"/></s:param>
																<s:param name="tab"><s:property value="#request.tabIndex"/></s:param>
															</s:url>">
																代收申请 </a>
														</s:if>
														<s:if test="testAgentReplyFlag(#sa)">
															<a
																href="<s:url action="busiInfo_replyPage">
																<s:param name="id"><s:property value="#sa.busiNo"/></s:param>
																<s:param name="tab"><s:property value="#request.tabIndex"/></s:param>
															</s:url>">
																代收审核 </a>
														</s:if>
												</td>
												<td class="Oper">
												</td>
												<td class="Eval">
														<a
															href="<s:url action="busiInfo_editNoteinfo">
															<s:param name="id"><s:property value="#sa.busiNo"/></s:param>
															<s:param name="type"><s:property value="1"/></s:param>
															<s:param name="tab"><s:property value="#request.tabIndex"/></s:param>
														</s:url>"
															title="编辑备忘信息 , 仅自己可见"> 备忘 <s:if
																test='#sa.noteInfo !=null'>${#sa.noteInfo.noteIndex}
													<img
																	src="<%=request.getContextPath()%>/images/op_memo_<s:property value="#sa.noteInfo.noteIndex"/>.png" />
															</s:if> </a>
												</td>
											</tr>
										</table>
										</s:iterator>
										<s:if test="#request.busilist.size()==0">
											<tr>
												<td colspan="5">
													<br/>
													<span class='orange1 ml5'>没有满足条件的记录</span>
												</td>
											</tr>
										</s:if>
										<s:property value="#request.allowpage" escape="false" />
										<!-- 
										<table class="OrderForm mt10 ">
											<tr>
												<th colspan="5">
													<span>业务单号：<em class="orange1">8022213371</em>
													</span><span class="ml15">创建时间：<em class="fc9">2011-07-02
															11:09</em>
													</span><span class="ml15">发货方：<em class="fc9">Kawo(HongKong)
															Industral Tehnology Limited </em>
													</span><span class="ml15"></span>
												</th>
											</tr>
											<tr>
												<td class="ofList">


													<p class="oflistp">
														<span class="Task"><a target="_blank"
															href="http://task.zhubajie.com/864880/">爱华仕热销商务休闲/旅行背包电脑双肩背包男/女双肩包
														</a> </span><span class="Unit">1</span><span class="Num"> 0.00
														</span><span class="Right"></span>
													</p>

												</td>
												<td class="Disbur">
													<strong>0.00</strong>
												</td>
												<td class="Tran">
													<p class="orange1">
													<p class="fc9">
														交易关闭
													</p>
													</p>
													<a href="/order/info-oid-8022213371-com-sale-role-buy.html"
														target="_blank">查看详情</a>
												</td>
												<td class="Oper">
												</td>
												<td class="Eval">
													<a href="javascript:void(0);" class="order_note"
														orderid="8022213371">备注</a>
												</td>
											</tr>
										</table>
										 -->
										<!--发布任务-->
										<!--发布服务-->
										<!-- 
										<table class="OrderForm mt10 proce">
											<tr>
												<th colspan="5">
													<span>业务单号：<em class="orange1">8022213099</em>
													</span><span class="ml15">创建时间：<em class="fc9">2011-07-02
															10:56</em>
													</span><span class="ml15">收货方：<em class="fc9">Kawo(HongKong)
															Industral Tehnology Limited </em>
													</span><span class="ml15"> </span>
												</th>
											</tr>
											<tr>
												<td class="ofList">
													<p class="oflistp">
														<span class="Task"><a target="_blank"
															href="http://task.zhubajie.com/864834/">电子商务网站美工</a> </span><span
															class="Unit">1</span><span class="Num"> 0.00 </span><span
															class="Right"></span>
													</p>
												</td>
												<td class="Disbur">
													<strong>0.00</strong>
												</td>
												<td class="Tran">
													<p class="orange1">
													<p class="green1">
														交易完成
													</p>
													</p>
													<a href="/order/info-oid-8022213099-com-sale-role-buy.html"
														target="_blank">查看详情</a>
												</td>
												<td class="Oper">
												</td>
												<td class="Eval">
													<a href="javascript:void(0);" class="order_note"
														orderid="8022213099">备注</a>
												</td>
											</tr>
										</table>
 										-->

									</div>
								</div>
							</div>
						</s:form>
						</div>
					</div>

				</div>
				<!--主体部分end-->
			</div>
		</div>
		<!--底部 start-->
		<%@ include file="/user_button.jsp"%>
		<!--底部end-->
	</body>
</html>

